#ifndef _WX_MSGDLG_H_BASE_
#define _WX_MSGDLG_H_BASE_

#include "wx/defs.h"

#if wxUSE_MSGDLG

class wxMessageDialogBase {
  protected:
    // common validation of wxMessageDialog style
    void SetMessageDialogStyle( long style ) {
      wxASSERT_MSG( ( ( style & wxYES_NO ) == wxYES_NO ) || ( ( style & wxYES_NO ) == 0 ),
                    wxT( "wxYES and wxNO may only be used together in wxMessageDialog" ) );
      wxASSERT_MSG( ( style & wxID_OK ) != wxID_OK,
                    wxT( "wxMessageBox: Did you mean wxOK (and not wxID_OK)?" ) );
      m_dialogStyle = style;
    }
    inline long GetMessageDialogStyle() const {
      return m_dialogStyle;
    }

  private:
    long m_dialogStyle;
};

#include "wx/gtk/msgdlg.h"


int wxMessageBox( const wxString& message,const wxString& caption = wxMessageBoxCaptionStr,
                              long style = wxOK | wxCENTRE,wxWindow *parent = NULL,
                              int x = wxDefaultCoord, int y = wxDefaultCoord );

#endif // wxUSE_MSGDLG

#endif
// _WX_MSGDLG_H_BASE_
